package cn.ilikes.tools.nosql.jpa.configs;

import java.net.URL;
import java.util.List;

import javax.persistence.SharedCacheMode;
import javax.persistence.ValidationMode;
import javax.persistence.spi.ClassTransformer;
import javax.persistence.spi.PersistenceUnitInfo;
import javax.sql.DataSource;

import cn.ilikes.tools.nosql.jpa.JPASQLRunTimeException;

/**
 * 
 * @author fack <persistence-unit name="kunderatest" >
 *         <provider>cn.ilikes.tools.
 *         hbase.jpa.JPAHbasePersistenceProvider</provider> <!--
 *         <class>cn.zy.impetus.kundera.test.pojos.TestPersonHBase</class>
 *         <class>cn.zy.impetus.kundera.test.pojos.TestClientHBase</class> -->
 *         <properties> <property name="kundera.dialect" value="hbase" />
 *         <property name="kundera.batch.size" value="200" /> <!-- 批处理 -->
 *         <property name="kundera.client.lookup.class"
 *         value="com.impetus.client.hbase.HBaseClientFactory" /> <property
 *         name="hbase.datastore.config.file"
 *         value="META-INF/datastore_config.xml" /> <property
 *         name="hbase.index.config.file" value="META-INF/index_config.xml" />
 *         </properties>
 * 
 *         </persistence-unit>
 * 
 * 
 * 
 *         </persistence>
 * 
 */
public class JPASQLPersistenceUnitMetadata extends ABPersistenceUnitMetadata implements PersistenceUnitInfo {

	public JPASQLPersistenceUnitMetadata(String xmlSchemaVersion, URL rootUrl) {
		super(xmlSchemaVersion, rootUrl);
	}

	@Override
	public DataSource getJtaDataSource() {
		return null;
	}

	@Override
	public List<String> getMappingFileNames() {
		return getMapfile();
	}

	@Override
	public DataSource getNonJtaDataSource() {
		return null;
	}

	@Override
	public String getPersistenceProviderClassName() {
		return getProvider();
	}

}
